import { loadGLTF } from "../../assets/loader/gltf/gltfParse";
/**
 * @class
 * @memberof w.parser
 * @param {*} message 消息
 * @param {*} callback 处理完成的回调
 */
async function gltf (message,callback){
    let gltf = await loadGLTF(message);
    let transferlist = gltf.transferlist
    // gltf.images.map(item=>{
    //   transferlist.push(item.buffer)
    // })
    delete gltf.transferlist
    delete gltf.buffers
    delete gltf.json
    delete gltf.worldMatrix
    callback({ data: gltf, transferlist:transferlist });
}
export {gltf}